﻿<UserControl x:Class="SLExtensions.Showcase.PageCommand"
    xmlns="http://schemas.microsoft.com/client/2007" 
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:sle="clr-namespace:SLExtensions.Input;assembly=SLExtensions"
    xmlns:scControllers="clr-namespace:SLExtensions.Showcase.Controllers;assembly=SLExtensions.Showcase"
    >
    <UserControl.Resources>
        <scControllers:PageCommandController x:Name="controller"/>
    </UserControl.Resources>
    <StackPanel x:Name="LayoutRoot" Background="White">
        <TextBlock Text="Simple Command pattern sample"/>
        <CheckBox x:Name="cbMultiSelect" IsChecked="{Binding Path=OpenFileInfo.EnableMultipleSelection, Source={StaticResource controller}, Mode=TwoWay}" Content="Multi select"/>
        <TextBox x:Name="fileFilter" Text="{Binding Path=OpenFileInfo.Filter, Source={StaticResource controller}, Mode=TwoWay}" />
        <Button Content="Open" Width="50" Height="30" sle:CommandService.Command="Open" sle:CommandService.CommandParameter="{Binding Path=OpenFileInfo, Source={StaticResource controller}}" />
    </StackPanel>
</UserControl>
